package com.weapons.week0903_weapons.fragment;


import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.weapons.week0903_weapons.R;


/**
 * A simple {@link Fragment} subclass.
 */
public class RoundFragment extends Fragment {
    private Activity mActivity;
    private String mpos="";

    public RoundFragment newInstance(String pos) {
        RoundFragment fragment=new RoundFragment();
        Bundle bundle=new Bundle();
        bundle.putString("pos",pos);
        fragment.setArguments(new Bundle(bundle));
        return fragment;
    }
    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mActivity=getActivity();
        Bundle bundle=getArguments();
        if (bundle!=null){
            mpos=bundle.getString("pos");
        }
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        return inflater.inflate(R.layout.fragment_round, container, false);
    }
    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
    }


}
